package com.mercenary.wein.screenControl.bean;

/**
 * Created by tuxiao on 2017/3/11.
 */
public class DeviceBean {
    private String serialNo;
    private String dname;
    private int port;
    private String manufacturer;
    private String productMode;
    private long gcode;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public long getGcode() {
        return gcode;
    }

    public void setGcode(long gcode) {
        this.gcode = gcode;
    }

    public DeviceBean(){

    }

    public DeviceBean(String serialNo, String dname, int port, String manufacturer, String productMode, long gcode, int status) {
        this.serialNo = serialNo;
        this.dname = dname;
        this.port = port;
        this.manufacturer = manufacturer;
        this.productMode = productMode;
        this.gcode = gcode;
        this.status = status;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getProductMode() {
        return productMode;
    }

    public void setProductMode(String productMode) {
        this.productMode = productMode;
    }

    public DeviceBean clone()  {
        return new DeviceBean(getSerialNo(),getDname(),getPort(),getManufacturer(),getProductMode(),getGcode(),getStatus());
    }
}
